package com.zhxy.manager.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhxy.manager.entity.Dormitory;
import com.zhxy.manager.entity.Equipment;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class EquipmentRepairDto {
    private int id;
    private int droomno;
    private double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接受日期参数
    @JsonFormat(pattern = "yyyy-MM-dd")//指定JSON转换的日期格式
    private Date ctime;
    private int eid;
    private Dormitory dormitory;
    private Equipment equipment;
}
